﻿
Partial Class WebForm_ManageRole
    Inherits System.Web.UI.Page
    Protected Sub SearchStaff1_Add(ByVal source As Object, ByVal e As System.EventArgs) Handles SearchStaff1.Add
        Me.TabContainer1.ActiveTab = Me.StaffManagementTabPanel
        Me.mvStaff.SetActiveView(Me.vwAdd)
        Me.AddStaff1.Show()
    End Sub

    Protected Sub SearchStaff1_Editing(ByVal source As Object, ByVal e As System.EventArgs) Handles SearchStaff1.Editing
        Me.TabContainer1.ActiveTab = Me.StaffManagementTabPanel
        Me.mvStaff.SetActiveView(Me.vwAdd)
        Me.AddStaff1.ShowEdit(Me.SearchStaff1.EmployeeID)
    End Sub

    Protected Sub SearchStaff1_Deleting(ByVal source As Object, ByVal e As System.EventArgs) Handles SearchStaff1.Deleting
        Me.TabContainer1.ActiveTab = Me.StaffManagementTabPanel
        Me.mvStaff.SetActiveView(Me.vwSearch)
        Me.SearchStaff1.DeleteData(Me.SearchStaff1.EmployeeID)
        Me.SearchStaff1.BindGV()
    End Sub

    Protected Sub AddStaff1_Saved(ByVal source As Object, ByVal e As System.EventArgs) Handles AddStaff1.Saved
        Me.TabContainer1.ActiveTab = Me.StaffManagementTabPanel
        Me.mvStaff.SetActiveView(Me.vwSearch)
        Me.SearchStaff1.BindGV()
    End Sub

    Protected Sub AddStaff1_Canceled(ByVal source As Object, ByVal e As System.EventArgs) Handles AddStaff1.Canceled
        Me.TabContainer1.ActiveTab = Me.StaffManagementTabPanel
        Me.mvStaff.SetActiveView(Me.vwSearch)
    End Sub
End Class
